package top.wkq.middleware.dynamic.thread.pool.sdk.domain;

import top.wkq.middleware.dynamic.thread.pool.sdk.domain.model.entity.ThreadPoolConfigEntity;

import java.util.List;

/**
 * <h1>动态线程池服务</h1>
 * 获取里面的数据
 * @author wangkaiqi
 * @since 2024-06-15
 */
public interface DynamicThreadPoolService {
    /**
     * <h2>获取线程池配置集合</h2>
     */
    List<ThreadPoolConfigEntity> getThreadPoolConfigList();
    /**
     * <h2>根据名称获取线程池配置</h2>
     */
    ThreadPoolConfigEntity getThreadPoolConfigByName(String threadPoolName);
    /**
     * <h2>更新线程池配置</h2>
     */
    void updateThreadPoolConfig(ThreadPoolConfigEntity threadPoolConfigEntity);
}
